Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

  • Export PricingOption, Deployment, Destination, and PublisherProperties union type aliases from the main adcp package
  • The PricingOption union combines all pricing option variants (CpmPricingOption, VcpmPricingOption, etc.) into a single type that mypy recognizes
  • Fixes mypy list-item errors when constructing objects like Product.pricing_options

Test plan

  • All existing tests pass
  • New tests verify union types are properly exported and contain expected variants
  • Mypy passes with --strict
  • Ruff linting passes

Closes #120

🤖 Generated with Claude Code

…kage

Export PricingOption, Deployment, Destination, and PublisherProperties
union type aliases from the main adcp package. These unions fix mypy
list-item errors when constructing objects like Product.pricing_options.

The PricingOption union combines all pricing variants (CpmPricingOption,
VcpmPricingOption, CpcPricingOption, etc.) into a single type that mypy
recognizes, avoiding the RootModel wrapper issues.

Closes #120

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit a1c61e7 into main Jan 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export type aliases for union types to fix mypy list-item errors

2 participants